import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'welcome',
    component: () => import('../views/Welcome.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../components/LoginVue.vue')
  },
  {
    path: '/dept',
    name: 'dept',
    component: () => import('../views/Dept.vue')
  },
  {
    path: '/deptinfo',
    name: 'deptinfo',
    component: () => import('../views/DeptInfo.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../components/Register.vue')
  },
  {
    path: '/head',
    name: 'head',
    component: () => import('../views/Head.vue')
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
